home *** CD-ROM | disk | FTP | other *** search
- class MiniStoneSky extends Library.State
- {
- var mcRef;
- function MiniStoneSky(__mcRef)
- {
- super(__mcRef);
- this.setState("Idle");
- this.mcRef.mcState.mcHit._visible = false;
- MiniGameManager.Instance.doAddListener(this);
- }
- function onCatched()
- {
- this.setState("Out");
- }
- function get Ref()
- {
- return this.mcRef;
- }
- function doOut()
- {
- if(this.isStateComplete())
- {
- MiniGameManager.Instance.doRemoveListener(this);
- this.mcRef.swapDepths(MiniGameManager.REMOVE_DEPTH);
- this.mcRef.removeMovieClip();
- }
- }
- }
-